package com.javaee.demov2.web.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description:
 *
 * @author: hevean
 * @date: 2022/04/07
 */
@Controller
@Slf4j
@RequestMapping("/admin")
public class RouterController {
    final String prefix ="views/";
    /**
     * 跳转到指定页面
     */

    
    // 系统用户管理路由
    @GetMapping("/system/user")
    public String toSystemUser( ) {

        return prefix+ "system/system-user";
    }

    @GetMapping("/books")
    public String toBooks( ) {
        return prefix+ "books/books";
    }

    @GetMapping("/ticket")
    public String toTicket( ) {
        return prefix+ "ticket/ticket";
    }

}
